<?php /* УТФ-8:fix */

class SPIview__media extends SPIview__dummy
{
    public function render( $file_source, $headers = null )
    {
        if( is_array( $headers ) === true )
        foreach( $headers as $key => $value )
        {
            header( "$key: $value" );
        }


        $hf = fopen( $file_source, 'rb' );

        if( is_resource( $hf ) === false )
        {
            return false;
        }

        fpassthru( $hf );
        fclose( $hf );

        return true;
    }
}
